home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / Direct3D / BumpMapping / BumpSelfShadow / readme.txt < prev    next >
Encoding:
Text File  |  2001-10-10  |  1.6 KB  |  48 lines

  1. Self Shadowed Bumpmaps
  2.  
  3. This projects includes all source and content for the self shadowing bump map algorithm presented at the 2001 GDC lecture by Dan Baker and Chas Boyd. This app will run without pixel shaders, as long as the hardware has rendertargets and DOT3. However, it runs much more efficently with pixel shaders and with better visual results.
  4.  
  5.  
  6. Source files 
  7.  
  8.      main.cpp        App main file
  9.      shadowset.cpp   All the code for the self-shadowed bump map
  10.     
  11.      d3dapp.cpp      The App framework already included on the DX 8 sdk
  12.      d3dfont.cpp     These files are provided for conveince only
  13.      d3dutil.cpp     and should be replaced with newer files from the
  14.      dxutil.cpp      sdk on newer releases of DirectX.
  15.  
  16.      bumpshader.vsh  - used for pixel shader emmulation
  17.      bumpshader2.vsh - used for pixel shader emmulation
  18.      bumpshader3.vsh - diffuse bump map vertex shader
  19.      bumpshader4.vsh - Shadow map vertex shader
  20.  
  21.      shadowbumpshader.psh - horizon map basis computer pixel shader
  22.  
  23.  
  24.  
  25. Media files
  26.      sphere.x        - the earth
  27.      earth.bmp       - earth texture
  28.      earthbump.bmp   - heightmap for earth
  29.  
  30. Camera Controls:
  31.     'S'             - Zoom Out
  32.     'W'             - Zoom In
  33.     Arrow Keys      - Move camera
  34.     NumPad arrows   - pitch camera (numlock should be on)
  35.     Numlock '7','9' - Roll camera
  36.  
  37. Other Controls:
  38.     '2'             - Toggle Self Shadowing
  39.     '3'             - Toggle Diffuse bump mapping
  40.     '4'             - Reset position
  41.     '5'             - Auto rotate
  42.  
  43.  
  44. Mouse:
  45.     Left Mouse rotates earth
  46.     Right Mouse moves light
  47.  
  48.